package top.infopub.mgr.bpa.service;


import java.math.BigDecimal;
import java.util.List;

import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.OtherCotDetailAndSubDomain;
import top.infopub.model.bpa.OtherCotDetail;


public interface OtherCotDetailService extends GenericService<OtherCotDetail, String> {

    /**
     * 联合查询明细和子项信息
     */
    List<OtherCotDetailAndSubDomain> selectDetailAndSub(String otherCotId, String feeSmallType1,
                                                        String feeSmallType2);

    /**
     * 根据分项名称和父关联id查询开累对内确权总金额
     * @param subName 分项名称
     * @param refId 父关联id
     * @return
     * @see
     */
    BigDecimal selectAddupAmountBySubNameAndRefId(String subName, String refId, String typeName);

}